import allure

from common.BaseRequest import BaseRequest


class Event:
    @classmethod
    @allure.step("登录pinter系统")
    def bank_login(cls, request, parametrize):
        rp = BaseRequest.excute_api_request(request=request, parametrize=parametrize)
        return rp



    @classmethod
    @allure.step("查询用户余额")
    def bank_query(cls, request=None, parametrize=None,login_request=None,login_parametrze=None):
        rp = cls.bank_login(request=login_request,
                            parametrize=login_parametrze)
        rp = BaseRequest.excute_api_request(request=request, parametrize=parametrize)
        return rp